<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class AgentProperty
 * 
 * @property int $agent_id
 * @property int $hall_id
 * @property int $bkge_template_id
 * @property int $rebet_template_id
 * @property int $age
 * @property string $avatar_url
 * @property string $nickname
 * @property string $realname
 * @property int $sex
 * @property \Carbon\Carbon $birth
 * @property string $email
 * @property string $mobile
 * @property int $safe_level
 * @property string $qq
 * @property string $wechat
 * @property string $skype
 * @property string $idcard
 * @property int $register_source
 * @property string $show_per
 * @property \Carbon\Carbon $last_login_time
 * @property string $last_login_ip
 * @property \Carbon\Carbon $mobile_update_time
 * @property string $remark
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class AgentProperty extends Eloquent
{
	protected $table = 'agent_property';
	protected $primaryKey = 'agent_id';
	public $incrementing = false;

	protected $casts = [
		'agent_id' => 'int',
		'hall_id' => 'int',
		'bkge_template_id' => 'int',
		'rebet_template_id' => 'int',
		'age' => 'int',
		'sex' => 'int',
		'safe_level' => 'int',
		'register_source' => 'int'
	];

	protected $dates = [
		'birth',
		'last_login_time',
		'mobile_update_time'
	];

	protected $fillable = [
		'hall_id',
		'bkge_template_id',
		'rebet_template_id',
		'age',
		'avatar_url',
		'nickname',
		'realname',
		'sex',
		'birth',
		'email',
		'mobile',
		'safe_level',
		'qq',
		'wechat',
		'skype',
		'idcard',
		'register_source',
		'show_per',
		'last_login_time',
		'last_login_ip',
		'mobile_update_time',
		'remark'
	];
}
